package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.User;
import tech.aistar.mapper.UserMapper;
import tech.aistar.service.IUserService;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/1/6 3:06 下午
 */
@Service
public class UserServiceImpl implements IUserService {
    //service层应该调用mapper层...
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String email) {
        User user = userMapper.findByEmail(email);
        return user;
    }
}
